package com.office.file.permission.domain;

import com.office.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.office.common.annotation.Excel;

/**
 * 文档权限对象 file_permission
 * 
 * @author ruoyi
 * @date 2025-05-23
 */
public class FilePermission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 权限ID */
    private Long permissionId;

    /** 文件ID */
    @Excel(name = "文件ID")
    private Long fileId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 是否可查看（0否 1是） */
    @Excel(name = "是否可查看", readConverterExp = "0=否,1=是")
    private Integer canView;

    /** 是否可编辑（0否 1是） */
    @Excel(name = "是否可编辑", readConverterExp = "0=否,1=是")
    private Integer canEdit;

    /** 是否可删除（0否 1是） */
    @Excel(name = "是否可删除", readConverterExp = "0=否,1=是")
    private Integer canDelete;

    /** 是否可下载（0否 1是） */
    @Excel(name = "是否可下载", readConverterExp = "0=否,1=是")
    private Integer canDownload;

    public void setPermissionId(Long permissionId) 
    {
        this.permissionId = permissionId;
    }

    public Long getPermissionId() 
    {
        return permissionId;
    }

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCanView(Integer canView) 
    {
        this.canView = canView;
    }

    public Integer getCanView() 
    {
        return canView;
    }

    public void setCanEdit(Integer canEdit) 
    {
        this.canEdit = canEdit;
    }

    public Integer getCanEdit() 
    {
        return canEdit;
    }

    public void setCanDelete(Integer canDelete) 
    {
        this.canDelete = canDelete;
    }

    public Integer getCanDelete() 
    {
        return canDelete;
    }

    public void setCanDownload(Integer canDownload) 
    {
        this.canDownload = canDownload;
    }

    public Integer getCanDownload() 
    {
        return canDownload;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("permissionId", getPermissionId())
            .append("fileId", getFileId())
            .append("userId", getUserId())
            .append("canView", getCanView())
            .append("canEdit", getCanEdit())
             .append("fileName", getFileName())
            .append("userName", getUserName())
            .append("canDelete", getCanDelete())
            .append("canDownload", getCanDownload())
            .toString();
    }
}
